package com.coldchain.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.coldchain.common.msg.ObjectRestResponse;
import com.coldchain.order.entity.BizReceiverPerson;

import java.util.List;

/**
 * <p>
 * 订单收货员信息 服务类
 * </p>
 *
 * @author fangliai
 * @since 2018-09-11
 */
public interface IBizReceiverPersonService extends IService<BizReceiverPerson> {
	/**
	 * 业务订单号查看收货信息
	 * @param bizId
	 * @param orderId
	 * @return
	 */
	public List<BizReceiverPerson> findByBizId(String bizId,String orderId);
	/**
	 * 确认到达
	 * @param id 收货点ID
	 * @param endLogUrl 到达记录图片
	 * @param goodsLogUrl 送货单记录图片
	 * @param resultLogUrl 回单记录图片
	 * @return
	 */
	public ObjectRestResponse<Object> sendArrive(Integer id, String bizId, String endLogUrl, String goodsLogUrl, String resultLogUrl, Integer carrierNum, String carrierName);
	/**
	 * 货物异常
	 * @param id
	 * @param errorLogUrl
	 * @param errorMsg
	 * @param errorCode
	 * @return
	 */
	public ObjectRestResponse<String> sendError(Integer receiverId,String errorLogUrl,String errorMsg,Integer errorCode);
}
